	<link href="__CSS__/Team/tabl.css" rel="Stylesheet" rev="Stylesheet">
    <style type="text/css">img{border: none;}</style>

    <form name="form1" method="post" action="" id="form1" style="float:left;width:100%;">

		<div style="width:100%;height:200px;">
			<a href="__URL__/searchTeacher/id/{$vo.Id}" target="_self" style="color:blue;font-size:14px;height:30px;line-height:30px;margin-left:30px;" >邀请指导老师</a>
			<table summary="团队参赛方案附件管理" id="hor-minimalist-a" style="width:90%;">
				<thead>
					<tr>
						<th scope="col">老师姓名</th>
						<th scope="col">审核状态</th>
						<th scope="col">邀请时间</th>
						<th scope="col">操作</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
					<tbody>
						<tr class="nocheck">
							<td>{$vo.TrueName}</td>
							<td>
								<if condition="$vo.IsApproved eq 1 ">
									<span style="color:blue;">已通过</span>
								<else />
									<span style="color:red;">待审核</span>
								</if>
							</td>
							<td>{$vo.CreateDate}</td>
							<td>
								<if condition="$vo.IsApproved eq 1 ">
									<i>不可删除</i>
								<else />
									<a class="delthr" val="{$vo.Id}"  title="取消邀请该指导老师" href="###">
										<img alt="" src="__IMG__/icon_close.gif">
									</a>
								</if>
							</td>
						</tr>
					</tbody>
				</foreach>
			</table>
			<br />
			<br />
			<p style="margin-left:30px;height:20px;line-height:20px;">小提示：每个团队只能邀请本校老师作为指导老师。<br />
				每个团队只能邀请2名指导老师。
			</p>
		</div>
    </form>
	<script>
   $(function(){
    $('.delthr').click(function(){
		  var isdel=confirm('您确定要删除吗？');
		  if(isdel){
			var val=$(this).attr("val");
			obj=$(this);
			$.ajax({
			  type: "POST",
			  url: "__URL__/delteateacher",
			  data: "teacherid="+val,
			  success: function(msg){
				obj.parentsUntil('.nocheck').parent().remove();
			  }
			});
		}else{
			return false;
		}

    });
  });
</script>